// TOWN DIALOGUE SCRIPT
//    Town 7: Lost Mine

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

int i,j,k,r1,choice;
short lead_char;


begintalknode 1;
	state = -1;
	personality = 4;
	nextstate = 1;
	condition = 1;
	question = "Haunted Nephil";
	text1 = "The puppet-like Nephilim approaches you with choppy motions, head lowered with eyes seemingly unaware of your presence. Its body radiates an eerie blue, much like Arivan's did, but it feels more supernatural.";
	text2 = "As it gets closer, you notice the thoughts of perfection and purifying the world get intensely stronger. You try to block them out. Could this being be the source? Is this creature the origin of this unusual plague?";
 text3 = "It continues to move closer. You are getting nervous and reach for your weapons. As soon as you do, it stops and a voice appears from nowhere and everywhere simultaneously. It's head remains lowered and its eyes remain disconnected.";
 text4= "_Why do you come to this prison? There is nothing for the living here. Only death._";

begintalknode 2;
	state = 1;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "We came here for the secrets of this city.";
	text1 = "The being says nothing for several seconds. Suddenly the disembodied voice returns, _Secrets? The only secret here is eternal death._ The voice stops and an eerie silence remains.";

begintalknode 3;
	state = 1;
	personality = 4;
	nextstate = 2;
	condition = 1;
	question = "Prison? What do you mean?";
	text1 = "The voice answers in its strange ethereal manner, _All the spirits here are trapped forever. This place, a trap for the un-life. Ancient spirits over millennia are stuck here, kept in place by this cursed place._";

begintalknode 4;
	state = 1;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "You're responsible for all the suffering in this forest! Die fiend! (Attack.)";
	text1 = "You draw your weapons. The creature suddenly springs to life with a sudden jolt. Its motions seem much more fluid now, and its glow intensifies as it moves toward you.";
 code =
  set_attitude(6,10);
  end();
 break;

begintalknode 5;
	state = 2;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "Who built this place?";
	text1 = "_Unknown,_ states the disembodied voice. _It is very old, predating modern history. These are tools of some long forgotten war between powerful beings. Tools that remain here today._ Another long pause.";
 text2 = "_I should know more. I do know more, but it's not here,_ ponders the voice. _Somewhere else, on the other side of the world perhaps._"; 

begintalknode 6;
	state = 2;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "What are you?";
	text1 = "_I am the perfect spirit, master of the mine,_ it says proudly. Its tone turns pensive. _But I am not whole. A shard of what I used to be..._ the voice trails.";

begintalknode 7;
	state = 2;
	personality = 4;
	nextstate = 3;
	condition = 1;
	question = "What keeps the spirits trapped here?";
	text1 = "_The machines. So old, but the defenses remain. The un-life has no hope of touching them, so we are trapped and there is no escape._";

begintalknode 8;
	state = 3;
	personality = 4;
	nextstate = 4;
	condition = 1;
	question = "We are alive. Perhaps we can destroy the machines and free you.";
	text1 = "_Freedom? Impossible!_ You hear an odd echo, almost like laughter, but you cannot be sure. _The imperfect who lived here before tried that once. They were consumed by the spirits here. There is no way._";
 text2 = "_Unless, you perfect yourselves,_ the voice suggestions in a haunting tone. You get an odd qeasiness in your stomach.";

begintalknode 9;
	state = 4;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "By the way, what happened to the city?";
	text1 = "_They settled here, I sensed them, living beings in this forest, imperfect ones. I guided them on the path to perfection. They purified their weak components and built a great civilization. All was well._";
 text2 = "_But then they opened this mine. The spirits within destroyed them. They were not perfect enough. I failed, this time. But, I found others and others after them. I will not stop until I create the Perfect Forest._";
 text3 = "It was as you had suspected. This spirit infected this place, warping the minds of this place, Asmur, Vikida, and who knows where else. Now you stand before it.";

begintalknode 10;
	state = 4;
	personality = 4;
	nextstate = 5;
	condition = 1;
	question = "I think things are good enough the way they are now, thank you very much.";
	text1 = "A long unpleasant pause. _No, you are in error. I will show you why. Soon you will see._";
 text2 = "The body leans toward you with the tips of its toes on the ground. Physics says it should fall over, but some force holds it in the impossible position. Its odd glow points toward you, slightly off the body, as if you were some magnet.";
 text3 = "The thoughts return to you in crushing intensity. You see your companions as foes, imperfections that need to be crushed. You must resist lest you will destroy yourself!";

begintalknode 11;
	state = 5;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "No! We will not surrender to this. We are good enough as we are!";
	text1 = "You push back with all the energy you can muster. Suddenly, the body gets thrown back and drags across the floor by its heels in another impossible position. The thoughts immediately cease.";
 text2 = "The body jolts and seems to come to life. Its motions are now much more fluid and its eyes now look straight at you with a piercing glare. The creature begins to glow with intensity as it approaches you. You draw your weapons.";
 code =
  set_attitude(6,10);
  end();
 break;
 